package xyz.yiui.service.user;

import xyz.yiui.pojo.User;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface UserService {
    ///用户登录
    public User login(String userCode,String password);
    ///修改当前用户密码
    public boolean updatePwd(int id, String password);

    //查询用户总数int
    public int getUserCount(String username,int userRole);
    //获取用户列表
    public List<User> getUserList(String queryUserName, int queryUserRole, int currentPageNo, int pageSize);
    //增加用户呢
    public boolean add(User user);
    //删除用户
    public boolean deleteUserById(Integer delId);
    //根据id得到用户
    public User getUserById(String id);
    //修改用户
    public boolean modify(User user);
    ///根据用户编码查找用户
    public User selectUserCodeExist(String userCode);

}
